package com.singleton.demo02;

/**
 * 单例类的
 */
public class RegSingletonChild extends RegSingleton {
    public RegSingletonChild(){}

    /**
     * 静态工行方法,通过父类来实例化
     */
    public static RegSingletonChild getInstance() {
        RegSingleton instance = RegSingleton.getInstance(RegSingletonChild.class.getName());
        return (RegSingletonChild) instance;
    }
}
